home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
posix
/
unistd
/
gcwd.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-06-13
|
288 b
|
19 lines
#include <unistd.h>
#include <stdio.h>
int
main(void)
{
char buf[100], *bp;
fprintf(stderr, "hello, there\n");
fflush(stderr);
if ((bp = getcwd(buf, 100)) == 0)
{
perror("getcwd");
return 0;
}
fflush(stderr);
printf("`%s'\n", bp);
return 0;
}